package com.navinfo.tripanalysis.common.arithmetic.custom;

import lombok.Data;

/**
 * 停车通电算法{@link com.navinfo.tripanalysis.common.arithmetic.ParkingPowerOn}的统计变量
 */
@Data
public class VarParkingPowerOn {
    /**
     * 停车开始时间(单位:毫秒)
     */
    private long parkingTime;

    /**
     * 累加的停车通电时长(单位:毫秒)
     */
    private int parkingPowerOnTime;

    /**
     * 上个点gps时间
     */
    private long lastGpsTime;

    /**
     * 上个点ACC状态
     */
    private boolean lastAccStatus;


    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("VarParkingPowerOn{");
        sb.append("parkingPowerOnTime=").append(parkingPowerOnTime);
        sb.append(", parkingTime=").append(parkingTime);
        sb.append(", lastGpsTime=").append(lastGpsTime);
        sb.append(", lastAccStatus=").append(lastAccStatus);
        sb.append('}');
        return sb.toString();
    }
}
